<%@ page language="java" pageEncoding="utf-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
	<html:base />

	<title>select.jsp</title>


</head>

<body>
	<table width="80%" border="1" cellspacing="0" cellpadding="0"
		align="center" bordercolor="#FFFFFF">
		<tr align="center" bgcolor="#EFF1F3">
			<td height="30" width="20%">
				name
			</td>
			<td height="30" width="20%">
				sax
			</td>
			<td height="30" width="20%">
				age
			</td>
			<td height="30" width="10%">
				sal
			</td>
			<td height="30" width="10%">
				删除
			</td>
			<td height="30" width="10%">
				更新
			</td>
		</tr>
		<logic:iterate id="bean" name="bean">
			
				<tr>
					<td>
						<bean:write name="bean" property="name" />
					</td>
					<td>
						<bean:write name="bean" property="sax" />
					</td>
					<td>
						<bean:write name="bean" property="age" />
					</td>
					<td>
						<bean:write name="bean" property="sal" />
					</td>
					<html:form action="/delete">
					<input type="hidden" name="hiddenname"
							value='<bean:write name="bean" property="name" />'>
					<td>
						<input type="submit" value="删除">
					</td>
					</html:form>
									
					<html:form action="/update">
					<input type="hidden" name="hiddenname"
							value='<bean:write name="bean" property="name" />'>
					<td>
						<input type="submit" value="更新">
					</td>
					</html:form>
				</tr>
			
		</logic:iterate>
	</table>
</body>
</html:html>
